//
//  LJTestViewController.m
//  LJDemoBase_Example
//
//  Created by 许朋举 on 2017/10/16.
//  Copyright © 2017年 1004109110@qq.com. All rights reserved.
//

#import "LJTestViewController.h"

@interface LJTestViewController ()

@end

@implementation LJTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    NSBundle *delfbundle = [NSBundle ]
//    UIImage *image = []
//    UIImageView *imgview = [UIImageView alloc]initWithImage:<#(nullable UIImage *)#>
    NSBundle *selfBundle = [NSBundle bundleForClass:self];
    
    NSLog(@"%@",selfBundle);
    
    // 获取bundle还不够，图片在bundle的XMGLib.bundle文件中
    // 注意图片要全名
    NSString *path = [selfBundle pathForResource:@"XMGLib.bundle/图片@2x.png" ofType:nil];
    
    UIImage *image = [UIImage imageWithContentsOfFile:path];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
